<%= render :partial => 'admin/shared/order_tabs', :locals => {:current => "Shipments"} %>
<table class="index">
  <tr>
    <th><%= t("shipment_number") %></th>
    <th><%= t("shipping_method") %></th>
    <th><%= t("shipping_cost") %></th>
    <th><%= t("tracking") %></th>
    <th><%= "#{t('spree.date')}/#{t('spree.time')}" %></th>
    <th></th>
  </tr>
  <% @shipments.each do |shipment| %>
    <tr>
      <td><%= shipment.number %></td>
      <td><%= shipment.shipping_method.name if shipment.shipping_method %></td>
      <td><%= shipment.cost %></td>
      <td><%= shipment.tracking %></td>
      <td><%= shipment.shipped_at.to_s(:date_time24) if shipment.shipped_at %></td>
      <td class="actions"><%= link_to_with_icon 'edit', t('edit'), edit_admin_order_shipment_url(@order, shipment) %></td>
    </tr>
  <% end %>
</table>

